#include "AlgoSimulator.h"


AlgoSimulator::AlgoSimulator():Algorithm()
{
	Open(256,256,8,4,1);
	pWin = new GangiaAlgoFrame(NULL);
	pWin->Show();
	Error = false;
	SingleSample = false;
}

AlgoSimulator::~AlgoSimulator(void)
{
	delete pWin;
}

void AlgoSimulator::RunSecWin(void)
{
	float Feed[4]={0,0,0,0};
	float Class = pWin->Class;
	pWin->Class = 4;

	ShiftSecondaryWin(64);
	pWin->GetFeedback(Feed);
	
	SetFeedback(Feed);
	SetClassification(Class);
}
void AlgoSimulator::RunMainWin(void)
{
	Sleep(10);
	ShiftMainWin(256);
}